<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

use think\facade\Env;

return [
    // 应用地址
    'app_host'         => Env::get('app.host', ''),
    // 应用的命名空间
    'app_namespace'    => '',
    // 是否启用路由
    'with_route'       => true,
    // 是否启用事件
    'with_event'       => true,
    // 应用映射（自动多应用模式有效）
    'app_map'          => [],
    // 域名绑定（自动多应用模式有效）
    'domain_bind'      => [
//        'yuege'        =>  'cms',  //  blog子域名绑定到blog应用

    ],
    // 禁止URL访问的应用列表（自动多应用模式有效）
    'deny_app_list'    => ['common'],
    // 开启应用快速访问 如果你完全不需要单应用模式，也可以设置使用严格的多应用模式
    'app_express'    =>    true,
    // 默认应用
    'default_app'      => 'index',
    // 默认时区
    'default_timezone' => 'Asia/Shanghai',

    // 空控制器名
    'empty_controller'      => 'Error',
    // 默认异常页面的模板文件
    'exception_tmpl'   => app()->getThinkPath() . 'tpl/think_exception.tpl',


//    // 默认跳转页面对应的模板文件
//    'dispatch_success_tmpl' => app()->getThinkPath() . 'tpl/dispatch_jump.tpl',
//    'dispatch_error_tmpl'   => app()->getThinkPath() . 'tpl/dispatch_jump.tpl',

    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl' => \think\facade\App::getAppPath(). '../public/dispatch/dispatch_jump.tpl',
    'dispatch_error_tmpl'   => \think\facade\App::getAppPath(). '../public/dispatch/dispatch_jump.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'    => '您访问的内容不存在',
    // 显示错误信息
    'show_error_msg'   => true,

    //产品名称
    "lemocms_name" => "LemoCm后台管理系统",
    //产品更新日期
    "lemocms_release" => 20200503,
    //产品版本号
    "lemocms_version" => "2.0.0",
    //移动接口正式
    "mobile_communication_CHANNEL_link"=>"http://he.10086.cn/app/api/app_api_V2.int",
    // "mobile_communication_CHANNEL_link" => "http://hb.tztec.com:10000/app/api/app_api_V2.int",
    //分销平台回调地址
    "reback_link" => "http://branchtest.jfxxl.net/api/order/outsideCallback",
    //咪咕登陆地址
    "migu" => [
        "secret" => "d3e7e602fd054e199a8e1e260691dfca",
        "channelCode" => "014X00I",
        "key" => "342df858d4a7421f87fcfbd64ff0dbe5",
        "loginLink" => "http://m.12530.com/order/rest/crbt/centrality/secret/url.do?data=",
        "isReverseLink" => "http://m.12530.com/order/rest/crbt/centrality/month/multiple/query.do?data=",
        "setVideoLink" => "http://m.12530.com/order/rest/crbt/centrality/vrbt/tone/free/sub/order.do?data=",
    ],
	//平安健康支付
	// "wechat" => [
	//     "app_id" => "wx5e72685318853998",
	//     "mch_id" => "1613954729",
	//     "key" => "xiaoxinchongdian20210908lanerxzp",
	// ],
	//平安健康对接权益回调配置
	"pajk" => [
	    "url" => Env::get('pajk.url'),
	],
	//福禄充值参数
	'aliyun' => [
	    'accessKeyId' => Env::get('aliyun.accessKeyId'),
	    'accessKeySecret' => Env::get('aliyun.accessKeySecret'),
		'lnSms' => Env::get('aliyun.lnSms'),     //辽宁电信
		'lnSmsName' => Env::get('aliyun.lnSmsName'),     //辽宁电信
	],
];
